package com.xishu.entity.customer;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 周期任务配置
 */
public class PeriodTimeConfig implements Serializable {
    private static final long serialVersionUID = 3448443009937942372L;

    @ApiModelProperty(value = "是否是一次性配送，还是周期配送")
    private Boolean once;

    @ApiModelProperty(value = "是否是立即发送")
    private Boolean nowTime;

    @ApiModelProperty(value = "一次性执行的时间")
    private Long onceExecuteTime;

    @ApiModelProperty(value = "1是按年，2是按月，3是按周，4是按日")
    private Integer periodType;

    @ApiModelProperty(value = "月")
    private Integer month;

    @ApiModelProperty(value = "日")
    private Integer day;

    @ApiModelProperty(value = "周几，1，2，3，4，5，6，7")
    private Integer weekDay;

    @ApiModelProperty(value = "小时")
    private Integer hour;

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public Boolean getNowTime() {
        return nowTime;
    }

    public void setNowTime(Boolean nowTime) {
        this.nowTime = nowTime;
    }

    public Boolean getOnce() {
        return once;
    }

    public void setOnce(Boolean once) {
        this.once = once;
    }

    public Long getOnceExecuteTime() {
        return onceExecuteTime;
    }

    public void setOnceExecuteTime(Long onceExecuteTime) {
        this.onceExecuteTime = onceExecuteTime;
    }

    public Integer getPeriodType() {
        return periodType;
    }

    public void setPeriodType(Integer periodType) {
        this.periodType = periodType;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(Integer weekDay) {
        this.weekDay = weekDay;
    }
}
